FROM centos
LABEL maintainer = "sanfu"

ENV MYPATH /usr/local
WORKDIR ${MYPATH}

# 更改yum源

RUN  cd /etc/yum.repos.d/ \
      && rm -rf ./*
RUN curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
RUN curl -o epel.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

RUN yum clean all \
    && yum makecache
# 安装vim
RUN yum -y install vim
# 安装ifconfig
RUN yum -y install net-tools

RUN yum -y install glibc.i686

RUN yum -y install openssh-server